/**
 * 测试mock数据内容
 * 参考网址 ： http://mockjs.com/examples.html
 * */

module.exports = {
  __swagger__: {
    name: 'mock数据接口',
    description: 'mock数据接口 - 在mock基础上扩展了若干模拟函数'
  },
  today: {
    name: '历史上的今天',
    desc: '历史上的今天',
    method: 'get',
    controller: 'v1.today',
    param: {
      isJson: {
        name: '是否json返回',
        desc: '是否json返回',
        req: 0,
        def: 0,
        type: 'int'
      }
    },
    err_code: {
      200: {
        temp: {
          data: {},
          code: 0,
          msg: 'ok',
          t: 1559204889719
        }
      }
    },
    test: {},
    token: false,
    needSign: false,
    front: true
  },
  img: {
    name: '模拟函数widthxheight图片',
    desc: '模拟函数图片',
    method: 'get',
    controller: 'v1.genImg',
    param: {
      size: {
        name: 'widthxheight',
        desc: '图片长宽',
        def: '100x100',
        type: 'string'
      }
    },
    test: {},
    token: false,
    needSign: false,
    front: true
  },
  qrcode: {
    name: 'qrcode',
    desc: '二维码生成',
    method: 'get',
    controller: 'v1.qrcode',
    param: {
      str: {
        name: 'str',
        desc: 'qrcode的字符串',
        type: 'string'
      }
    },
    test: {},
    token: false,
    needSign: false,
    front: true
  },
  getBing: {
    name: 'getBing',
    desc: 'getBing',
    method: 'get',
    controller: 'v1.getBing',
    param: {},
    test: {},
    token: false,
    needSign: false,
    front: true
  },
  chem: {
    name: '化学方程式拼配',
    desc: '化学方程式拼配',
    method: 'get',
    controller: 'v1.chem',
    param: {
      eqInput: {
        name: 'eqInput',
        desc: '输入的化学方程式',
        type: 'string',
        def: 'O2+H2=H2O'
      }
    },
    test: {},
    token: false,
    needSign: false,
    front: true
  },
  chartImg: {
    name: 'chart数据JSON转图像',
    desc: 'chart数据JSON转图像',
    method: 'get',
    controller: 'v1.chartImg',
    param: {
      chartJsonStr: {
        name: '图表chartJsonStr字符串',
        desc: '图表json字符串',
        type: 'string',
        req: 1
      }
    },
    test: {},
    token: false,
    needSign: false,
    front: true
  },
  mock: {
    name: 'mockJsonStr提交返回',
    desc: 'mockJsonStr提交返回',
    method: 'get',
    controller: 'v1.mock',
    param: {
      mockJsonStr: {
        name: 'mockJsonStr字符串',
        desc: 'mockJsonStr字符串',
        type: 'string',
        req: 1
      }
    },
    test: {},
    token: false,
    needSign: false,
    front: true
  },
  checkPwd: {
    name: '检测危险密码',
    desc: '检测危险密码',
    method: 'get',
    controller: 'v1.checkPwd',
    param: {
      pwdStr: {
        name: 'pwdStr密码字符串',
        desc: 'pwdStr密码字符串',
        type: 'string',
        size: [2, 20],
        req: 1
      }
    },
    test: {},
    token: false,
    needSign: false,
    front: true
  },
  readQR: {
    name: '识别二维码',
    desc: '识别二维码',
    method: 'get',
    controller: 'v1.readQR',
    param: {
      qrStr: {
        name: 'qrStr,网络地址或者base64',
        desc: 'qrStr,网络地址或者base64',
        type: 'string',
        req: 1
      }
    },
    test: {},
    token: false,
    needSign: false,
    front: true
  },
  phone: {
    name: '中国手机号码归属查询',
    desc: '中国手机号码归属查询',
    method: 'get',
    controller: 'v1.phone',
    param: {
      phoneStr: {
        name: 'phoneStr手机号',
        desc: 'phoneStr手机号',
        type: 'string',
        size: [11, 11],
        req: 1
      }
    },
    test: {},
    token: false,
    needSign: false,
    front: true
  },
  ip: {
    name: 'ip查询',
    desc: 'ip查询',
    method: 'get',
    controller: 'v1.ipQuery',
    param: {
      ipStr: {
        name: 'ipStr IP地址',
        desc: 'ipStr IP地址',
        type: 'string',
        req: 1
      }
    },
    test: {},
    token: false,
    needSign: false,
    front: true
  },
  trans: {
    name: '翻译',
    desc: '翻译',
    method: 'get',
    controller: 'v1.trans',
    param: {
      transStr: {
        name: 'transStr 被翻译的字符串',
        desc: 'transStr 被翻译的字符串',
        type: 'string',
        size: [2, 150],
        req: 1
      },
      transType: {
        name: '翻译类型',
        desc: '翻译类型',
        type: 'string',
        def: 'c2e' //e2c
      }
    },
    test: {},
    token: false,
    needSign: false,
    front: true
  },
  latlng: {
    name: '经纬度反查',
    desc: '经纬度反查',
    method: 'get',
    controller: 'v1.latlng',
    param: {
      lat: {
        name: 'lat维度',
        desc: 'lat维度',
        type: 'number',
        req: 1
      },
      lng: {
        name: 'lng经度',
        desc: 'lng经度',
        type: 'number',
        req: 1
      },
      latlngType: {
        name: '翻译类型',
        desc: '翻译类型',
        type: 'string',
        def: 'gd' //如果不是高德，全作为baidu处理
      }
    },
    test: {},
    token: false,
    needSign: false,
    front: true
  },
  covi: {
    name: '世界冠状情况',
    desc: '世界冠状情况',
    method: 'get',
    controller: 'v1.covi',
    param: {},
    err_code: {
      200: {
        temp: {
          data: {},
          code: 0,
          msg: 'ok',
          t: 1559204889719
        }
      }
    },
    test: {},
    token: false,
    needSign: false,
    front: true
  },
  coviAll: {
    name: '世界冠状情况All',
    desc: '世界冠状情况All,json返回',
    method: 'get',
    controller: 'v1.coviAll',
    param: {},
    err_code: {
      200: {
        temp: {
          data: {},
          code: 0,
          msg: 'ok',
          t: 1559204889719
        }
      }
    },
    test: {},
    token: false,
    needSign: false,
    front: true
  },
  coviHtml: {
    name: '世界冠状情况HTML',
    desc: '世界冠状情况,html返回',
    method: 'get',
    controller: 'v1.coviHtml',
    param: {
      displayType: {
        name: '显示类型',
        desc: '显示类型',
        type: 'string'
      }
    },
    err_code: {
      200: {
        temp: {
          data: {},
          code: 0,
          msg: 'ok',
          t: 1559204889719
        }
      }
    },
    test: {},
    token: false,
    needSign: false,
    front: true
  },
  avatar: {
    name: '根据名字产生头像',
    desc: '根据名字产生头像',
    method: 'get',
    controller: 'v1.avatar',
    param: {
      str: {
        name: '头像名字符串',
        desc: '头像名字符串',
        type: 'string',
        req: 1,
        size: [1, 30]
      }
    },
    err_code: {
      200: {
        temp: {
          data: {},
          code: 0,
          msg: 'ok',
          t: 1559204889719
        }
      }
    },
    test: {},
    token: false,
    needSign: false,
    front: true
  },
  questAskReady: {},
  questAsk: {}
}
